﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Domain
{
    /// <summary>
    /// 深加工企业
    /// </summary>
    [Table("DeepEnterprises")]
    public class DeepEnterprises
    {
        /// <summary>
        /// 深加工企业ID
        /// </summary>
        [Key]
        public int DeepEnterprisesId { get; set; }
        /// <summary>
        /// 深加工企业名称
        /// </summary>
        public string? DeepEnterprisesName { get; set; }
        /// <summary>
        /// 深加工企业生产许可证号
        /// </summary>
        public string? License {  get; set; }
        /// <summary>
        /// 深加工企业生产批次
        /// </summary>
        public string? DeepEnterprisesBatch { get; set; }
        /// <summary>
        /// 溯源表ID
        /// </summary>

        public int TraceabilityId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public bool DeepEnterprisesDel { get; set; } = false;




        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? delName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? delDate { get; set; }
    }
}
